package com.teach;

import java.math.BigInteger;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-13 14:09
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Demo03 {
  public static void main(String[] args) {
    BigInteger bi = new BigInteger("1");
    byte b = bi.byteValue();
    int i = bi.intValue();
    long l = bi.longValue();

    long a1 = Long.MAX_VALUE;
    System.out.println(a1);
    long b1 = 255L;
    System.out.println(a1+b1);

    BigInteger bi1 = new BigInteger(""+Long.MAX_VALUE);
    System.out.println(bi1.toString());
    BigInteger bi2 =bi1.add(new BigInteger("255"));
    System.out.println(bi1);
    System.out.println(bi2);
    System.out.println(bi2.longValue());


  }
}
